package com.lanou3g.multi_mybatis.service;

import com.lanou3g.multi_mybatis.bean.User;
import com.lanou3g.multi_mybatis.bean.UserExample;
import com.lanou3g.multi_mybatis.mapper.lanou.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

// 操作lanou库中的user表相关业务
@Service
public class UserService {
	@Autowired
	private UserMapper userMapper;

	public List<User> findAll() {
		return userMapper.selectByExample(new UserExample());
	}
}
